import request from '@/utils/request'

// 小卷打包列表
export const GetListAPI = params => {
  return request({
    url: '/production/roll-packing/list',
    method: 'GET',
    params
  })
}

// 勾选打包
export const RollPackingAPI = data => {
  return request({
    url: '/production/roll-packing/view/' + data,
    method: 'GET'
  })
}

// 修改勾选数据打印状态
export const UpdateStatusAPI = data => {
  return request({
    url: '/production/roll-packing/updateStatus',
    method: 'PUT',
    data
  })
}

// 小卷不良
export const BadSmallRollAPI = data => {
  return request({
    url: '/production/roll-packing/badSmallRoll/' + data,
    method: 'GET'
  })
}

// 补打标签
export const RetagAPI = data => {
  return request({
    url: '/production/roll-packing/retag/' + data,
    method: 'GET'
  })
}

// 修改接头
export const UpdateJointAPI = data => {
  return request({
    url: '/production/roll-packing/updateJoint',
    method: 'PUT',
    data
  })
}

// 修改接头回显
export const GointViewAPI = params => {
  return request({
    url: '/production/roll-packing/jointView/' + params,
    method: 'GET'
  })
}

// 打包标签
export const PackageLabelAPI = data => {
  return request({
    url: '/production/roll-packing/packageLabel',
    method: 'POST',
    data
  })
}
